package com.ruoyi.project.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.base.Field;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Data
@TableName("project_goods")
public class ProjectGoods extends Field {
    @TableId
    private String id;
    /** 型号 */
    @Excel(name = "型号")
    private String modal;

    /** 完整名称 */
    @Excel(name = "完整名称")
    private String fullName;

    /** 简称 */
    @Excel(name = "简称")
    private String name;

    /** 参数 */
    @Excel(name = "参数")
    private String param;


    @TableField(exist = false)
    List<Map<String, Object>> historyCostList; // getter & setter

    @TableField(exist = false)
    private BigDecimal avgCost;

    @TableField(exist = false)
    private Integer remaining;

    @TableField(exist = false)
    private BigDecimal minPrice;

}
